package gametcp

import (
	"github.com/yenkeia/mirgo/game/proto/client"
	"github.com/yenkeia/mirgo/game/proto/server"
)

var PacketNameMap = make(map[int]string)

func initClientPacketMap() {
	PacketNameMap[client.CLIENT_VERSION] = "CLIENT_VERSION"
	PacketNameMap[client.DISCONNECT] = "DISCONNECT"
	PacketNameMap[client.KEEP_ALIVE] = "KEEP_ALIVE"
	PacketNameMap[client.NEW_ACCOUNT] = "NEW_ACCOUNT"
	PacketNameMap[client.CHANGE_PASSWORD] = "CHANGE_PASSWORD"
	PacketNameMap[client.LOGIN] = "LOGIN"
	PacketNameMap[client.NEW_CHARACTER] = "NEW_CHARACTER"
	PacketNameMap[client.DELETE_CHARACTER] = "DELETE_CHARACTER"
	PacketNameMap[client.START_GAME] = "START_GAME"
	PacketNameMap[client.LOG_OUT] = "LOG_OUT"
	PacketNameMap[client.TURN] = "TURN"
	PacketNameMap[client.WALK] = "WALK"
	PacketNameMap[client.RUN] = "RUN"
	PacketNameMap[client.CHAT] = "CHAT"
	PacketNameMap[client.MOVE_ITEM] = "MOVE_ITEM"
	PacketNameMap[client.STORE_ITEM] = "STORE_ITEM"
	PacketNameMap[client.TAKE_BACK_ITEM] = "TAKE_BACK_ITEM"
	PacketNameMap[client.MERGE_ITEM] = "MERGE_ITEM"
	PacketNameMap[client.EQUIP_ITEM] = "EQUIP_ITEM"
	PacketNameMap[client.REMOVE_ITEM] = "REMOVE_ITEM"
	PacketNameMap[client.REMOVE_SLOT_ITEM] = "REMOVE_SLOT_ITEM"
	PacketNameMap[client.SPLIT_ITEM] = "SPLIT_ITEM"
	PacketNameMap[client.USE_ITEM] = "USE_ITEM"
	PacketNameMap[client.DROP_ITEM] = "DROP_ITEM"
	PacketNameMap[client.DEPOSIT_REFINE_ITEM] = "DEPOSIT_REFINE_ITEM"
	PacketNameMap[client.RETRIEVE_REFINE_ITEM] = "RETRIEVE_REFINE_ITEM"
	PacketNameMap[client.REFINE_CANCEL] = "REFINE_CANCEL"
	PacketNameMap[client.REFINE_ITEM] = "REFINE_ITEM"
	PacketNameMap[client.CHECK_REFINE] = "CHECK_REFINE"
	PacketNameMap[client.REPLACE_WED_RING] = "REPLACE_WED_RING"
	PacketNameMap[client.DEPOSIT_TRADE_ITEM] = "DEPOSIT_TRADE_ITEM"
	PacketNameMap[client.RETRIEVE_TRADE_ITEM] = "RETRIEVE_TRADE_ITEM"
	PacketNameMap[client.DROP_GOLD] = "DROP_GOLD"
	PacketNameMap[client.PICK_UP] = "PICK_UP"
	PacketNameMap[client.INSPECT] = "INSPECT"
	PacketNameMap[client.CHANGE_A_MODE] = "CHANGE_A_MODE"
	PacketNameMap[client.CHANGE_P_MODE] = "CHANGE_P_MODE"
	PacketNameMap[client.CHANGE_TRADE] = "CHANGE_TRADE"
	PacketNameMap[client.ATTACK] = "ATTACK"
	PacketNameMap[client.RANGE_ATTACK] = "RANGE_ATTACK"
	PacketNameMap[client.HARVEST] = "HARVEST"
	PacketNameMap[client.CALL_NPC] = "CALL_NPC"
	PacketNameMap[client.TALK_MONSTER_NPC] = "TALK_MONSTER_NPC"
	PacketNameMap[client.BUY_ITEM] = "BUY_ITEM"
	PacketNameMap[client.SELL_ITEM] = "SELL_ITEM"
	PacketNameMap[client.CRAFT_ITEM] = "CRAFT_ITEM"
	PacketNameMap[client.REPAIR_ITEM] = "REPAIR_ITEM"
	PacketNameMap[client.BUY_ITEM_BACK] = "BUY_ITEM_BACK"
	PacketNameMap[client.S_REPAIR_ITEM] = "S_REPAIR_ITEM"
	PacketNameMap[client.MAGIC_KEY] = "MAGIC_KEY"
	PacketNameMap[client.MAGIC] = "MAGIC"
	PacketNameMap[client.SWITCH_GROUP] = "SWITCH_GROUP"
	PacketNameMap[client.ADD_MEMBER] = "ADD_MEMBER"
	PacketNameMap[client.DEL_MEMBER] = "DEL_MEMBER"
	PacketNameMap[client.GROUP_INVITE] = "GROUP_INVITE"
	PacketNameMap[client.TOWN_REVIVE] = "TOWN_REVIVE"
	PacketNameMap[client.SPELL_TOGGLE] = "SPELL_TOGGLE"
	PacketNameMap[client.CONSIGN_ITEM] = "CONSIGN_ITEM"
	PacketNameMap[client.MARKET_SEARCH] = "MARKET_SEARCH"
	PacketNameMap[client.MARKET_REFRESH] = "MARKET_REFRESH"
	PacketNameMap[client.MARKET_PAGE] = "MARKET_PAGE"
	PacketNameMap[client.MARKET_BUY] = "MARKET_BUY"
	PacketNameMap[client.MARKET_GET_BACK] = "MARKET_GET_BACK"
	PacketNameMap[client.REQUEST_USER_NAME] = "REQUEST_USER_NAME"
	PacketNameMap[client.REQUEST_CHAT_ITEM] = "REQUEST_CHAT_ITEM"
	PacketNameMap[client.EDIT_GUILD_MEMBER] = "EDIT_GUILD_MEMBER"
	PacketNameMap[client.EDIT_GUILD_NOTICE] = "EDIT_GUILD_NOTICE"
	PacketNameMap[client.GUILD_INVITE] = "GUILD_INVITE"
	PacketNameMap[client.GUILD_NAME_RETURN] = "GUILD_NAME_RETURN"
	PacketNameMap[client.REQUEST_GUILD_INFO] = "REQUEST_GUILD_INFO"
	PacketNameMap[client.GUILD_STORAGE_GOLD_CHANGE] = "GUILD_STORAGE_GOLD_CHANGE"
	PacketNameMap[client.GUILD_STORAGE_ITEM_CHANGE] = "GUILD_STORAGE_ITEM_CHANGE"
	PacketNameMap[client.GUILD_WAR_RETURN] = "GUILD_WAR_RETURN"
	PacketNameMap[client.MARRIAGE_REQUEST] = "MARRIAGE_REQUEST"
	PacketNameMap[client.MARRIAGE_REPLY] = "MARRIAGE_REPLY"
	PacketNameMap[client.CHANGE_MARRIAGE] = "CHANGE_MARRIAGE"
	PacketNameMap[client.DIVORCE_REQUEST] = "DIVORCE_REQUEST"
	PacketNameMap[client.DIVORCE_REPLY] = "DIVORCE_REPLY"
	PacketNameMap[client.ADD_MENTOR] = "ADD_MENTOR"
	PacketNameMap[client.MENTOR_REPLY] = "MENTOR_REPLY"
	PacketNameMap[client.ALLOW_MENTOR] = "ALLOW_MENTOR"
	PacketNameMap[client.CANCEL_MENTOR] = "CANCEL_MENTOR"
	PacketNameMap[client.TRADE_REQUEST] = "TRADE_REQUEST"
	PacketNameMap[client.TRADE_REPLY] = "TRADE_REPLY"
	PacketNameMap[client.TRADE_GOLD] = "TRADE_GOLD"
	PacketNameMap[client.TRADE_CONFIRM] = "TRADE_CONFIRM"
	PacketNameMap[client.TRADE_CANCEL] = "TRADE_CANCEL"
	PacketNameMap[client.EQUIP_SLOT_ITEM] = "EQUIP_SLOT_ITEM"
	PacketNameMap[client.FISHING_CAST] = "FISHING_CAST"
	PacketNameMap[client.FISHING_CHANGE_AUTOCAST] = "FISHING_CHANGE_AUTOCAST"
	PacketNameMap[client.ACCEPT_QUEST] = "ACCEPT_QUEST"
	PacketNameMap[client.FINISH_QUEST] = "FINISH_QUEST"
	PacketNameMap[client.ABANDON_QUEST] = "ABANDON_QUEST"
	PacketNameMap[client.SHARE_QUEST] = "SHARE_QUEST"
	PacketNameMap[client.ACCEPT_REINCARNATION] = "ACCEPT_REINCARNATION"
	PacketNameMap[client.CANCEL_REINCARNATION] = "CANCEL_REINCARNATION"
	PacketNameMap[client.COMBINE_ITEM] = "COMBINE_ITEM"
	PacketNameMap[client.SET_CONCENTRATION] = "SET_CONCENTRATION"
	PacketNameMap[client.AWAKENING_NEED_MATERIALS] = "AWAKENING_NEED_MATERIALS"
	PacketNameMap[client.AWAKENING_LOCKED_ITEM] = "AWAKENING_LOCKED_ITEM"
	PacketNameMap[client.AWAKENING] = "AWAKENING"
	PacketNameMap[client.DISASSEMBLE_ITEM] = "DISASSEMBLE_ITEM"
	PacketNameMap[client.DOWNGRADE_AWAKENING] = "DOWNGRADE_AWAKENING"
	PacketNameMap[client.RESET_ADDED_ITEM] = "RESET_ADDED_ITEM"
	PacketNameMap[client.SEND_MAIL] = "SEND_MAIL"
	PacketNameMap[client.READ_MAIL] = "READ_MAIL"
	PacketNameMap[client.COLLECT_PARCEL] = "COLLECT_PARCEL"
	PacketNameMap[client.DELETE_MAIL] = "DELETE_MAIL"
	PacketNameMap[client.LOCK_MAIL] = "LOCK_MAIL"
	PacketNameMap[client.MAIL_LOCKED_ITEM] = "MAIL_LOCKED_ITEM"
	PacketNameMap[client.MAIL_COST] = "MAIL_COST"
	PacketNameMap[client.UPDATE_INTELLIGENT_CREATURE] = "UPDATE_INTELLIGENT_CREATURE"
	PacketNameMap[client.INTELLIGENT_CREATURE_PICKUP] = "INTELLIGENT_CREATURE_PICKUP"
	PacketNameMap[client.ADD_FRIEND] = "ADD_FRIEND"
	PacketNameMap[client.REMOVE_FRIEND] = "REMOVE_FRIEND"
	PacketNameMap[client.REFRESH_FRIENDS] = "REFRESH_FRIENDS"
	PacketNameMap[client.ADD_MEMO] = "ADD_MEMO"
	PacketNameMap[client.GUILD_BUFF_UPDATE] = "GUILD_BUFF_UPDATE"
	PacketNameMap[client.NPC_CONFIRM_INPUT] = "NPC_CONFIRM_INPUT"
	PacketNameMap[client.GAMESHOP_BUY] = "GAMESHOP_BUY"
	PacketNameMap[client.REPORT_ISSUE] = "REPORT_ISSUE"
	PacketNameMap[client.GET_RANKING] = "GET_RANKING"
	PacketNameMap[client.OPENDOOR] = "OPENDOOR"
	PacketNameMap[client.GET_RENTED_ITEMS] = "GET_RENTED_ITEMS"
	PacketNameMap[client.ITEM_RENTAL_REQUEST] = "ITEM_RENTAL_REQUEST"
	PacketNameMap[client.ITEM_RENTAL_FEE] = "ITEM_RENTAL_FEE"
	PacketNameMap[client.ITEM_RENTAL_PERIOD] = "ITEM_RENTAL_PERIOD"
	PacketNameMap[client.DEPOSIT_RENTAL_ITEM] = "DEPOSIT_RENTAL_ITEM"
	PacketNameMap[client.RETRIEVE_RENTAL_ITEM] = "RETRIEVE_RENTAL_ITEM"
	PacketNameMap[client.CANCEL_ITEM_RENTAL] = "CANCEL_ITEM_RENTAL"
	PacketNameMap[client.ITEM_RENTAL_LOCK_FEE] = "ITEM_RENTAL_LOCK_FEE"
	PacketNameMap[client.ITEM_RENTAL_LOCK_ITEM] = "ITEM_RENTAL_LOCK_ITEM"
	PacketNameMap[client.CONFIRM_ITEM_RENTAL] = "CONFIRM_ITEM_RENTAL"
}

func initServerPacketMap() {
	PacketNameMap[server.CONNECTED] = "CONNECTED"
	PacketNameMap[server.CLIENT_VERSION] = "CLIENT_VERSION"
	PacketNameMap[server.DISCONNECT] = "DISCONNECT"
	PacketNameMap[server.KEEP_ALIVE] = "KEEP_ALIVE"
	PacketNameMap[server.NEW_ACCOUNT] = "NEW_ACCOUNT"
	PacketNameMap[server.CHANGE_PASSWORD] = "CHANGE_PASSWORD"
	PacketNameMap[server.CHANGE_PASSWORD_BANNED] = "CHANGE_PASSWORD_BANNED"
	PacketNameMap[server.LOGIN] = "LOGIN"
	PacketNameMap[server.LOGIN_BANNED] = "LOGIN_BANNED"
	PacketNameMap[server.LOGIN_SUCCESS] = "LOGIN_SUCCESS"
	PacketNameMap[server.NEW_CHARACTER] = "NEW_CHARACTER"
	PacketNameMap[server.NEW_CHARACTER_SUCCESS] = "NEW_CHARACTER_SUCCESS"
	PacketNameMap[server.DELETE_CHARACTER] = "DELETE_CHARACTER"
	PacketNameMap[server.DELETE_CHARACTER_SUCCESS] = "DELETE_CHARACTER_SUCCESS"
	PacketNameMap[server.START_GAME] = "START_GAME"
	PacketNameMap[server.START_GAME_BANNED] = "START_GAME_BANNED"
	PacketNameMap[server.START_GAME_DELAY] = "START_GAME_DELAY"
	PacketNameMap[server.MAP_INFORMATION] = "MAP_INFORMATION"
	PacketNameMap[server.USER_INFORMATION] = "USER_INFORMATION"
	PacketNameMap[server.USER_LOCATION] = "USER_LOCATION"
	PacketNameMap[server.OBJECT_PLAYER] = "OBJECT_PLAYER"
	PacketNameMap[server.OBJECT_REMOVE] = "OBJECT_REMOVE"
	PacketNameMap[server.OBJECT_TURN] = "OBJECT_TURN"
	PacketNameMap[server.OBJECT_WALK] = "OBJECT_WALK"
	PacketNameMap[server.OBJECT_RUN] = "OBJECT_RUN"
	PacketNameMap[server.CHAT] = "CHAT"
	PacketNameMap[server.OBJECT_CHAT] = "OBJECT_CHAT"
	PacketNameMap[server.NEW_ITEM_INFO] = "NEW_ITEM_INFO"
	PacketNameMap[server.MOVE_ITEM] = "MOVE_ITEM"
	PacketNameMap[server.EQUIP_ITEM] = "EQUIP_ITEM"
	PacketNameMap[server.MERGE_ITEM] = "MERGE_ITEM"
	PacketNameMap[server.REMOVE_ITEM] = "REMOVE_ITEM"
	PacketNameMap[server.REMOVE_SLOT_ITEM] = "REMOVE_SLOT_ITEM"
	PacketNameMap[server.TAKE_BACK_ITEM] = "TAKE_BACK_ITEM"
	PacketNameMap[server.STORE_ITEM] = "STORE_ITEM"
	PacketNameMap[server.SPLIT_ITEM] = "SPLIT_ITEM"
	PacketNameMap[server.SPLIT_ITEM1] = "SPLIT_ITEM1"
	PacketNameMap[server.DEPOSIT_REFINE_ITEM] = "DEPOSIT_REFINE_ITEM"
	PacketNameMap[server.RETRIEVE_REFINE_ITEM] = "RETRIEVE_REFINE_ITEM"
	PacketNameMap[server.REFINE_CANCEL] = "REFINE_CANCEL"
	PacketNameMap[server.REFINE_ITEM] = "REFINE_ITEM"
	PacketNameMap[server.DEPOSIT_TRADE_ITEM] = "DEPOSIT_TRADE_ITEM"
	PacketNameMap[server.RETRIEVE_TRADE_ITEM] = "RETRIEVE_TRADE_ITEM"
	PacketNameMap[server.USE_ITEM] = "USE_ITEM"
	PacketNameMap[server.DROP_ITEM] = "DROP_ITEM"
	PacketNameMap[server.PLAYER_UPDATE] = "PLAYER_UPDATE"
	PacketNameMap[server.PLAYER_INSPECT] = "PLAYER_INSPECT"
	PacketNameMap[server.LOG_OUT_SUCCESS] = "LOG_OUT_SUCCESS"
	PacketNameMap[server.LOG_OUT_FAILED] = "LOG_OUT_FAILED"
	PacketNameMap[server.TIME_OF_DAY] = "TIME_OF_DAY"
	PacketNameMap[server.CHANGE_A_MODE] = "CHANGE_A_MODE"
	PacketNameMap[server.CHANGE_P_MODE] = "CHANGE_P_MODE"
	PacketNameMap[server.OBJECT_ITEM] = "OBJECT_ITEM"
	PacketNameMap[server.OBJECT_GOLD] = "OBJECT_GOLD"
	PacketNameMap[server.GAINED_ITEM] = "GAINED_ITEM"
	PacketNameMap[server.GAINED_GOLD] = "GAINED_GOLD"
	PacketNameMap[server.LOSE_GOLD] = "LOSE_GOLD"
	PacketNameMap[server.GAINED_CREDIT] = "GAINED_CREDIT"
	PacketNameMap[server.LOSE_CREDIT] = "LOSE_CREDIT"
	PacketNameMap[server.OBJECT_MONSTER] = "OBJECT_MONSTER"
	PacketNameMap[server.OBJECT_ATTACK] = "OBJECT_ATTACK"
	PacketNameMap[server.STRUCK] = "STRUCK"
	PacketNameMap[server.OBJECT_STRUCK] = "OBJECT_STRUCK"
	PacketNameMap[server.DAMAGE_INDICATOR] = "DAMAGE_INDICATOR"
	PacketNameMap[server.DURA_CHANGED] = "DURA_CHANGED"
	PacketNameMap[server.HEALTH_CHANGED] = "HEALTH_CHANGED"
	PacketNameMap[server.DELETE_ITEM] = "DELETE_ITEM"
	PacketNameMap[server.DEATH] = "DEATH"
	PacketNameMap[server.OBJECT_DIED] = "OBJECT_DIED"
	PacketNameMap[server.COLOUR_CHANGED] = "COLOUR_CHANGED"
	PacketNameMap[server.OBJECT_COLOUR_CHANGED] = "OBJECT_COLOUR_CHANGED"
	PacketNameMap[server.OBJECT_GUILD_NAME_CHANGED] = "OBJECT_GUILD_NAME_CHANGED"
	PacketNameMap[server.GAIN_EXPERIENCE] = "GAIN_EXPERIENCE"
	PacketNameMap[server.LEVEL_CHANGED] = "LEVEL_CHANGED"
	PacketNameMap[server.OBJECT_LEVELED] = "OBJECT_LEVELED"
	PacketNameMap[server.OBJECT_HARVEST] = "OBJECT_HARVEST"
	PacketNameMap[server.OBJECT_HARVESTED] = "OBJECT_HARVESTED"
	PacketNameMap[server.OBJECT_NPC] = "OBJECT_NPC"
	PacketNameMap[server.NPC_RESPONSE] = "NPC_RESPONSE"
	PacketNameMap[server.OBJECT_HIDE] = "OBJECT_HIDE"
	PacketNameMap[server.OBJECT_SHOW] = "OBJECT_SHOW"
	PacketNameMap[server.POISONED] = "POISONED"
	PacketNameMap[server.OBJECT_POISONED] = "OBJECT_POISONED"
	PacketNameMap[server.MAP_CHANGED] = "MAP_CHANGED"
	PacketNameMap[server.OBJECT_TELEPORT_OUT] = "OBJECT_TELEPORT_OUT"
	PacketNameMap[server.OBJECT_TELEPORT_IN] = "OBJECT_TELEPORT_IN"
	PacketNameMap[server.TELEPORT_IN] = "TELEPORT_IN"
	PacketNameMap[server.NPC_GOODS] = "NPC_GOODS"
	PacketNameMap[server.NPC_SELL] = "NPC_SELL"
	PacketNameMap[server.NPC_REPAIR] = "NPC_REPAIR"
	PacketNameMap[server.NPC_S_REPAIR] = "NPC_S_REPAIR"
	PacketNameMap[server.NPC_REFINE] = "NPC_REFINE"
	PacketNameMap[server.NPC_CHECK_REFINE] = "NPC_CHECK_REFINE"
	PacketNameMap[server.NPC_COLLECT_REFINE] = "NPC_COLLECT_REFINE"
	PacketNameMap[server.NPC_REPLACE_WED_RING] = "NPC_REPLACE_WED_RING"
	PacketNameMap[server.NPC_STORAGE] = "NPC_STORAGE"
	PacketNameMap[server.SELL_ITEM] = "SELL_ITEM"
	PacketNameMap[server.CRAFT_ITEM] = "CRAFT_ITEM"
	PacketNameMap[server.REPAIR_ITEM] = "REPAIR_ITEM"
	PacketNameMap[server.ITEM_REPAIRED] = "ITEM_REPAIRED"
	PacketNameMap[server.NEW_MAGIC] = "NEW_MAGIC"
	PacketNameMap[server.REMOVE_MAGIC] = "REMOVE_MAGIC"
	PacketNameMap[server.MAGIC_LEVELED] = "MAGIC_LEVELED"
	PacketNameMap[server.MAGIC] = "MAGIC"
	PacketNameMap[server.MAGIC_DELAY] = "MAGIC_DELAY"
	PacketNameMap[server.MAGIC_CAST] = "MAGIC_CAST"
	PacketNameMap[server.OBJECT_MAGIC] = "OBJECT_MAGIC"
	PacketNameMap[server.OBJECT_EFFECT] = "OBJECT_EFFECT"
	PacketNameMap[server.RANGE_ATTACK] = "RANGE_ATTACK"
	PacketNameMap[server.PUSHED] = "PUSHED"
	PacketNameMap[server.OBJECT_PUSHED] = "OBJECT_PUSHED"
	PacketNameMap[server.OBJECT_NAME] = "OBJECT_NAME"
	PacketNameMap[server.USER_STORAGE] = "USER_STORAGE"
	PacketNameMap[server.SWITCH_GROUP] = "SWITCH_GROUP"
	PacketNameMap[server.DELETE_GROUP] = "DELETE_GROUP"
	PacketNameMap[server.DELETE_MEMBER] = "DELETE_MEMBER"
	PacketNameMap[server.GROUP_INVITE] = "GROUP_INVITE"
	PacketNameMap[server.ADD_MEMBER] = "ADD_MEMBER"
	PacketNameMap[server.REVIVED] = "REVIVED"
	PacketNameMap[server.OBJECT_REVIVED] = "OBJECT_REVIVED"
	PacketNameMap[server.SPELL_TOGGLE] = "SPELL_TOGGLE"
	PacketNameMap[server.OBJECT_HEALTH] = "OBJECT_HEALTH"
	PacketNameMap[server.MAP_EFFECT] = "MAP_EFFECT"
	PacketNameMap[server.OBJECT_RANGE_ATTACK] = "OBJECT_RANGE_ATTACK"
	PacketNameMap[server.ADD_BUFF] = "ADD_BUFF"
	PacketNameMap[server.REMOVE_BUFF] = "REMOVE_BUFF"
	PacketNameMap[server.OBJECT_HIDDEN] = "OBJECT_HIDDEN"
	PacketNameMap[server.REFRESH_ITEM] = "REFRESH_ITEM"
	PacketNameMap[server.OBJECT_SPELL] = "OBJECT_SPELL"
	PacketNameMap[server.USER_DASH] = "USER_DASH"
	PacketNameMap[server.OBJECT_DASH] = "OBJECT_DASH"
	PacketNameMap[server.USER_DASH_FAIL] = "USER_DASH_FAIL"
	PacketNameMap[server.OBJECT_DASH_FAIL] = "OBJECT_DASH_FAIL"
	PacketNameMap[server.NPC_CONSIGN] = "NPC_CONSIGN"
	PacketNameMap[server.NPC_MARKET] = "NPC_MARKET"
	PacketNameMap[server.NPC_MARKET_PAGE] = "NPC_MARKET_PAGE"
	PacketNameMap[server.CONSIGN_ITEM] = "CONSIGN_ITEM"
	PacketNameMap[server.MARKET_FAIL] = "MARKET_FAIL"
	PacketNameMap[server.MARKET_SUCCESS] = "MARKET_SUCCESS"
	PacketNameMap[server.OBJECT_SIT_DOWN] = "OBJECT_SIT_DOWN"
	PacketNameMap[server.IN_TRAP_ROCK] = "IN_TRAP_ROCK"
	PacketNameMap[server.BASE_STATS_INFO] = "BASE_STATS_INFO"
	PacketNameMap[server.USER_NAME] = "USER_NAME"
	PacketNameMap[server.CHAT_ITEM_STATS] = "CHAT_ITEM_STATS"
	PacketNameMap[server.GUILD_NOTICE_CHANGE] = "GUILD_NOTICE_CHANGE"
	PacketNameMap[server.GUILD_MEMBER_CHANGE] = "GUILD_MEMBER_CHANGE"
	PacketNameMap[server.GUILD_STATUS] = "GUILD_STATUS"
	PacketNameMap[server.GUILD_INVITE] = "GUILD_INVITE"
	PacketNameMap[server.GUILD_EXP_GAIN] = "GUILD_EXP_GAIN"
	PacketNameMap[server.GUILD_NAME_REQUEST] = "GUILD_NAME_REQUEST"
	PacketNameMap[server.GUILD_STORAGE_GOLD_CHANGE] = "GUILD_STORAGE_GOLD_CHANGE"
	PacketNameMap[server.GUILD_STORAGE_ITEM_CHANGE] = "GUILD_STORAGE_ITEM_CHANGE"
	PacketNameMap[server.GUILD_STORAGE_LIST] = "GUILD_STORAGE_LIST"
	PacketNameMap[server.GUILD_REQUEST_WAR] = "GUILD_REQUEST_WAR"
	PacketNameMap[server.DEFAULT_NPC] = "DEFAULT_NPC"
	PacketNameMap[server.NPC_UPDATE] = "NPC_UPDATE"
	PacketNameMap[server.NPC_IMAGE_UPDATE] = "NPC_IMAGE_UPDATE"
	PacketNameMap[server.MARRIAGE_REQUEST] = "MARRIAGE_REQUEST"
	PacketNameMap[server.DIVORCE_REQUEST] = "DIVORCE_REQUEST"
	PacketNameMap[server.MENTOR_REQUEST] = "MENTOR_REQUEST"
	PacketNameMap[server.TRADE_REQUEST] = "TRADE_REQUEST"
	PacketNameMap[server.TRADE_ACCEPT] = "TRADE_ACCEPT"
	PacketNameMap[server.TRADE_GOLD] = "TRADE_GOLD"
	PacketNameMap[server.TRADE_ITEM] = "TRADE_ITEM"
	PacketNameMap[server.TRADE_CONFIRM] = "TRADE_CONFIRM"
	PacketNameMap[server.TRADE_CANCEL] = "TRADE_CANCEL"
	PacketNameMap[server.MOUNT_UPDATE] = "MOUNT_UPDATE"
	PacketNameMap[server.EQUIP_SLOT_ITEM] = "EQUIP_SLOT_ITEM"
	PacketNameMap[server.FISHING_UPDATE] = "FISHING_UPDATE"
	PacketNameMap[server.CHANGE_QUEST] = "CHANGE_QUEST"
	PacketNameMap[server.COMPLETE_QUEST] = "COMPLETE_QUEST"
	PacketNameMap[server.SHARE_QUEST] = "SHARE_QUEST"
	PacketNameMap[server.NEW_QUEST_INFO] = "NEW_QUEST_INFO"
	PacketNameMap[server.GAINED_QUEST_ITEM] = "GAINED_QUEST_ITEM"
	PacketNameMap[server.DELETE_QUEST_ITEM] = "DELETE_QUEST_ITEM"
	PacketNameMap[server.CANCEL_REINCARNATION] = "CANCEL_REINCARNATION"
	PacketNameMap[server.REQUEST_REINCARNATION] = "REQUEST_REINCARNATION"
	PacketNameMap[server.USER_BACK_STEP] = "USER_BACK_STEP"
	PacketNameMap[server.OBJECT_BACK_STEP] = "OBJECT_BACK_STEP"
	PacketNameMap[server.USER_DASH_ATTACK] = "USER_DASH_ATTACK"
	PacketNameMap[server.OBJECT_DASH_ATTACK] = "OBJECT_DASH_ATTACK"
	PacketNameMap[server.USER_ATTACK_MOVE] = "USER_ATTACK_MOVE"
	PacketNameMap[server.COMBINE_ITEM] = "COMBINE_ITEM"
	PacketNameMap[server.ITEM_UPGRADED] = "ITEM_UPGRADED"
	PacketNameMap[server.SET_CONCENTRATION] = "SET_CONCENTRATION"
	PacketNameMap[server.SET_OBJECT_CONCENTRATION] = "SET_OBJECT_CONCENTRATION"
	PacketNameMap[server.SET_ELEMENTAL] = "SET_ELEMENTAL"
	PacketNameMap[server.SET_OBJECT_ELEMENTAL] = "SET_OBJECT_ELEMENTAL"
	PacketNameMap[server.REMOVE_DELAYED_EXPLOSION] = "REMOVE_DELAYED_EXPLOSION"
	PacketNameMap[server.OBJECT_DECO] = "OBJECT_DECO"
	PacketNameMap[server.OBJECT_SNEAKING] = "OBJECT_SNEAKING"
	PacketNameMap[server.OBJECT_LEVEL_EFFECTS] = "OBJECT_LEVEL_EFFECTS"
	PacketNameMap[server.SET_BINDING_SHOT] = "SET_BINDING_SHOT"
	PacketNameMap[server.SEND_OUTPUT_MESSAGE] = "SEND_OUTPUT_MESSAGE"
	PacketNameMap[server.NPC_AWAKENING] = "NPC_AWAKENING"
	PacketNameMap[server.NPC_DISASSEMBLE] = "NPC_DISASSEMBLE"
	PacketNameMap[server.NPC_DOWNGRADE] = "NPC_DOWNGRADE"
	PacketNameMap[server.NPC_RESET] = "NPC_RESET"
	PacketNameMap[server.AWAKENING_NEED_MATERIALS] = "AWAKENING_NEED_MATERIALS"
	PacketNameMap[server.AWAKENING_LOCKED_ITEM] = "AWAKENING_LOCKED_ITEM"
	PacketNameMap[server.AWAKENING] = "AWAKENING"
	PacketNameMap[server.RECEIVE_MAIL] = "RECEIVE_MAIL"
	PacketNameMap[server.MAIL_LOCKED_ITEM] = "MAIL_LOCKED_ITEM"
	PacketNameMap[server.MAIL_SEND_REQUEST] = "MAIL_SEND_REQUEST"
	PacketNameMap[server.MAIL_SENT] = "MAIL_SENT"
	PacketNameMap[server.PARCEL_COLLECTED] = "PARCEL_COLLECTED"
	PacketNameMap[server.MAIL_COST] = "MAIL_COST"
	PacketNameMap[server.RESIZE_INVENTORY] = "RESIZE_INVENTORY"
	PacketNameMap[server.RESIZE_STORAGE] = "RESIZE_STORAGE"
	PacketNameMap[server.NEW_INTELLIGENT_CREATURE] = "NEW_INTELLIGENT_CREATURE"
	PacketNameMap[server.UPDATE_INTELLIGENT_CREATURElIST] = "UPDATE_INTELLIGENT_CREATURElIST"
	PacketNameMap[server.INTELLIGENT_CREATURE_ENABLE_RENAME] = "INTELLIGENT_CREATURE_ENABLE_RENAME"
	PacketNameMap[server.INTELLIGENT_CREATURE_PICKUP] = "INTELLIGENT_CREATURE_PICKUP"
	PacketNameMap[server.NPC_PEARL_GOODS] = "NPC_PEARL_GOODS"
	PacketNameMap[server.TRANSFORM_UPDATE] = "TRANSFORM_UPDATE"
	PacketNameMap[server.FRIEND_UPDATE] = "FRIEND_UPDATE"
	PacketNameMap[server.LOVER_UPDATE] = "LOVER_UPDATE"
	PacketNameMap[server.MENTOR_UPDATE] = "MENTOR_UPDATE"
	PacketNameMap[server.GUILD_BUFF_LIST] = "GUILD_BUFF_LIST"
	PacketNameMap[server.NPC_REQUEST_INPUT] = "NPC_REQUEST_INPUT"
	PacketNameMap[server.GAME_SHOP_INFO] = "GAME_SHOP_INFO"
	PacketNameMap[server.GAME_SHOP_STOCK] = "GAME_SHOP_STOCK"
	PacketNameMap[server.RANKINGS] = "RANKINGS"
	PacketNameMap[server.OPENDOOR] = "OPENDOOR"
	PacketNameMap[server.GET_RENTED_ITEMS] = "GET_RENTED_ITEMS"
	PacketNameMap[server.ITEM_RENTAL_REQUEST] = "ITEM_RENTAL_REQUEST"
	PacketNameMap[server.ITEM_RENTAL_FEE] = "ITEM_RENTAL_FEE"
	PacketNameMap[server.ITEM_RENTAL_PERIOD] = "ITEM_RENTAL_PERIOD"
	PacketNameMap[server.DEPOSIT_RENTAL_ITEM] = "DEPOSIT_RENTAL_ITEM"
	PacketNameMap[server.RETRIEVE_RENTAL_ITEM] = "RETRIEVE_RENTAL_ITEM"
	PacketNameMap[server.UPDATE_RENTAL_ITEM] = "UPDATE_RENTAL_ITEM"
	PacketNameMap[server.CANCEL_ITEM_RENTAL] = "CANCEL_ITEM_RENTAL"
	PacketNameMap[server.ITEM_RENTAL_LOCK] = "ITEM_RENTAL_LOCK"
	PacketNameMap[server.ITEM_RENTAL_PARTNER_LOCK] = "ITEM_RENTAL_PARTNER_LOCK"
	PacketNameMap[server.CAN_CONFIRM_ITEM_RENTAL] = "CAN_CONFIRM_ITEM_RENTAL"
	PacketNameMap[server.CONFIRM_ITEM_RENTAL] = "CONFIRM_ITEM_RENTAL"
	PacketNameMap[server.NEW_RECIPE_INFO] = "NEW_RECIPE_INFO"
	PacketNameMap[server.OPEN_BROWSER] = "OPEN_BROWSER"
}

func init() {
	initClientPacketMap()
	initServerPacketMap()
}
